package org.ucas.faker.web.exceptions;

import org.springframework.http.HttpStatus;

/**
 * 资源未发现类异常
 * @author suemi
 */
public class NotFoundException extends RestException {

  public static final NotFoundException User_NotExists =
      new NotFoundException(ErrCode.USER_NOTEXISTS);

  private NotFoundException(ErrCode errCode) {
    super(errCode);
  }

  public static NotFoundException of(String msg) {
    return new NotFoundException(new ErrCode(
        HttpStatus.NOT_FOUND, msg));
  }
}

